/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vista;

import basedatos.CrearBaseDeDatos;
import basedatos.OperacionesBD;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import propiedades.Propiedades;
import vista.modelo.ImagenJPanel;

/**
 *
 * @author caesar
 */
public class IfrmAbriendoApp extends javax.swing.JFrame implements Runnable {

    Thread t;

    public IfrmAbriendoApp() {
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new ImagenJPanel("Intro-01.png");
        jLabel2 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jProgressBar2 = new javax.swing.JProgressBar();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(215, 172, 130));
        setUndecorated(true);
        getContentPane().setLayout(null);

        jPanel1.setOpaque(false);
        jPanel1.setLayout(null);

        jLabel2.setText("Iniciando archivos.....");
        jPanel1.add(jLabel2);
        jLabel2.setBounds(140, 210, 160, 17);

        jLabel5.setText("Por Favor Espere");
        jPanel1.add(jLabel5);
        jLabel5.setBounds(160, 250, 150, 20);

        jProgressBar2.setIndeterminate(true);
        jProgressBar2.setStringPainted(true);
        jPanel1.add(jProgressBar2);
        jProgressBar2.setBounds(90, 230, 260, 10);

        getContentPane().add(jPanel1);
        jPanel1.setBounds(0, 0, 450, 300);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-437)/2, (screenSize.height-288)/2, 437, 288);
    }// </editor-fold>//GEN-END:initComponents

    public void run() {
        try {
            this.setLocationRelativeTo(null);
            this.setVisible(true);            
            t.sleep(5000);
            this.dispose();
        } catch (Exception ex) {
            Logger.getLogger(IfrmAbriendoApp.class.getName()).log(Level.SEVERE, null, ex);
        }

    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JProgressBar jProgressBar2;
    // End of variables declaration//GEN-END:variables
}
